import Vue from 'vue'
import AuxiliaryAccountingBalance from './AuxiliaryAccountingBalance.vue'
import Storage from 'vue-ls'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.less'
import Print from 'vue-print-nb-jeecg'
import HeyUI from 'heyui'
import api from '../../util/api'
import AppContent from '../../util/components/AppContent'
import AccountDateChoose from '../../util/components/AccountDateChoose'
import '../../util/js/dict'
import '../../util/js/filters'
import store from '../../store'
import router from '../../router'

require('font-awesome/css/font-awesome.css')
require('../../util/styles/app.less')

import config from '@/defaultSettings'

Vue.use(Storage, config.storageOptions)
Vue.use(Antd)
Vue.use(Print)
Vue.use(HeyUI)
Vue.prototype.$api = api

Vue.component("app-content", AppContent)
Vue.component("account-date-choose", AccountDateChoose)

store.dispatch("init").then(() => {
  new Vue({
    router,
    store,
    render: h => h(AuxiliaryAccountingBalance)
  }).$mount('#app')
})